# -*- coding: UTF-8 -*-

from flask import Flask
from flask import send_from_directory

app = Flask(__name__)


@app.route("/")
def index():
    return "hello,i am downloader"


@app.route("/download")
def download_imsi_log():
    filename = '1234.amr'
    return send_from_directory(r"/root", filename=filename, as_attachment=True)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=10020)
